<?php $this->load->view('_header') ?>

<div class="Main">
<div id="flightleft">
	<?php $this->load->view('leftmenu') ?>
</div>

<div id="flightright">
	<table>
		<tr><td style="color:#7985AA;font-weight:bold"><?=lang("FlightOrderList")?></td><td><img src="<?=site_url('images/A4.gif')?>" /></td></tr>
	</table>
	<?php
	echo form_open('order/queryorder',array('id' => 'formquery'));
	
	?><table class="querytable" cellpadding=4 cellspacing=6>
		<tr height=30 ><td><?=lang("SearchForOrderNo")?>:</td>
			<td width=180><input type=text name="OrderNo" class="txd" value="<?php echo $sOrderno ?>" /></td>
			<td><?=lang("PassengerName")?>:</td>
			<td width=160><input type=text name="PassengerName" class="txd" value="<?php echo $sPassengerName ?>" /></td>			
			<td width=80><input type=submit name="bbb" class="btn" value="<?=lang("home_Find")?>"/></td>
		</tr>
		<tr height=30 >
			<td><?=lang("Bookingdate")?>:</td>
			<td colspan=2 >
				<input type=text id="txbookdate1" name="bookdate1" style="width:80px" class="txdatec" value="<?php echo set_value("bookdate1",$bookdate1); ?>"  />
				<input type=text id="txbookdate2" name="bookdate2" style="width:80px" class="txdatec" value="<?php echo set_value("bookdate2",""); ?>"  />
			</td>		
			<td></td>
		</tr>	
	</table>
	<?php
	
	echo form_close();
	ini_set("date.timezone","Asia/Shanghai");
	
	?><table width=710 >
		<tr height=27 class="trair" align=center >
			<td><?=lang("OrderNo")?></td>
			<td><?=lang("Bookingdate")?></td>
			<td><?=lang("home_Depart")?></td>
			<td><?=lang("Itinerary")?></td>
			<td><?=lang("TotalPrice")?></td>
			<td><?=lang("OrderStatus")?></td>
		</tr>
		<?php
		foreach($myorder as $orderitem)
		{
		?>
		<tr height=27 align=center >
			<td><a href="<?php echo site_url("order/airorder/".$orderitem->Orderno); ?>" class="orangeb" target="_blank"><?php echo $orderitem->Orderno; ?></a></td>
			<td><?php echo date("Y-m-d",strtotime($orderitem->BookDate));	
			 ?></td>
			<td><?php echo date("Y-m-d",strtotime($orderitem->departdate)); ?></td>
			<td><?php echo $orderitem->fromport.'-'.$orderitem->destport; ?></td>
			<td><?php echo $orderitem->mainCurrency.":".$orderitem->TotalPrice; ?></td>
			<td><?php echo $OrderStatus[$orderitem->Status]; ?></td>
		</tr>
		<?php	
		}
		?>
	</table>
	<BR/><BR/>
</div>
<div class="clear"></div>
</div>
<script language="javascript">
$('#txbookdate1,#txbookdate2').datepick();	
</script>
<?php $this->load->view('_footer') ?>